<?php get_header(); ?>
<div id="main-area-wrap">
	<div id="wrapper">
		<div id="main">
			<div class="post">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<div class="new-post">
	<h1><?php the_title() ?></h1>
	<div id="post-content"> 
<?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>
	<?php if($thumb !== '' && get_option('glow_page_thumbnails') == 'on') { ?>
				<img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&amp;h=<?php echo(get_option('glow_thumbnail_height_pages')); ?>&amp;w=<?php echo(get_option('glow_thumbnail_width_pages')); ?>&amp;zc=1" alt="<?php echo the_title(); ?>" class="thumbnail alignleft" width="<?php echo(get_option('glow_thumbnail_width_pages')); ?>" height="<?php echo(get_option('glow_thumbnail_height_pages')); ?>px" />
<?php }; ?> 
		<?php the_content(); ?>
		<?php edit_post_link('Edit this page'); ?>
		<div class="clear"></div>
	</div> <!-- end post-content -->
</div> <!-- end new-post -->	
	<?php if (get_option('glow_show_pagescomments') == 'on') comments_template('', true); ?>
<?php endwhile; ?>

<?php else : ?>
	<!--If no results are found-->
	<div id="post-content"> 
		<h1>No Results Found</h1>
		<p>The page you requested could not be found. Try refining your search, or use the navigation above to locate the post.</p>
	</div>
	<!--End if no results are found-->
<?php endif; ?>
			</div> <!-- end post -->
		</div> <!-- end main -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>